package com.tcloudit.system.api;

import com.tcloudit.common.core.constant.SecurityConstants;
import com.tcloudit.common.core.constant.ServiceNameConstants;
import com.tcloudit.common.core.domain.R;
import com.tcloudit.system.api.domain.CamundaUserPost.EmailDetailTO;
import com.tcloudit.system.api.domain.CamundaUserPost.UserEmailTO;
import com.tcloudit.system.api.domain.CamundaUserPost.UserTO;
import com.tcloudit.system.api.domain.SysUser;
import com.tcloudit.system.api.factory.RemoteThirdPartyFallbackFactory;
import com.tcloudit.system.api.factory.RemoteUserFallbackFactory;
import com.tcloudit.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 第三方服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteThirdPartyService", value = ServiceNameConstants.THIRD_SERVICE, fallbackFactory = RemoteThirdPartyFallbackFactory.class)
public interface RemoteThirdPartyService
{
    /**
     * 发送短信
     * @return 结果
     */
    @PostMapping("/thirdParty/email/sendEmail")
    public com.tcloudit.common.core.domain.R<String> sendEmail(@RequestBody EmailDetailTO emailDetailTO);
}
